from django.db import models

# Create your models here.
class MaterialVideoData(models.Model):
    id = models.AutoField(primary_key=True)
    material_name = models.CharField(max_length=256, blank=True, null=True)
    url = models.CharField(max_length=256, blank=True, null=True)
    type = models.IntegerField(blank=True, null=True)
    user_id = models.IntegerField(blank=True, null=True)
    cover = models.CharField(max_length=256, blank=True, null=True)
    price_info = models.CharField(max_length=4096, blank=True, null=True)
    width = models.IntegerField(blank=True, null=True)
    height = models.IntegerField(blank=True, null=True)
    duration = models.IntegerField(blank=True, null=True)
    category_id = models.IntegerField(blank=True, null=True)
    source_type = models.IntegerField()
    create_time = models.DateTimeField(blank=True, null=True)
    update_time = models.DateTimeField(blank=True, null=True)
    app_id = models.IntegerField(blank=True, null=True)
    platform_type = models.IntegerField(blank=True, null=True)
    mix_type = models.IntegerField(blank=True, null=True)
    file_md5 = models.CharField(max_length=64, blank=True, null=True)
    deleted = models.IntegerField(blank=True, null=True)

    class Meta:
        managed = False
        db_table = 'material_video_data'
        app_label = 'AchieveHandler'

class MaterialImageData(models.Model):
    id = models.AutoField(primary_key=True)
    material_name = models.CharField(max_length=256, blank=True, null=True)
    url = models.CharField(max_length=256, blank=True, null=True)
    type = models.IntegerField(blank=True, null=True)
    user_id = models.IntegerField(blank=True, null=True)
    width = models.IntegerField(blank=True, null=True)
    height = models.IntegerField(blank=True, null=True)
    create_time = models.DateTimeField(blank=True, null=True)
    update_time = models.DateTimeField(blank=True, null=True)
    app_id = models.IntegerField(blank=True, null=True)
    media_type = models.IntegerField(blank=True, null=True)
    platform_type = models.IntegerField(blank=True, null=True)
    source_type = models.IntegerField()
    lay_type = models.IntegerField(blank=True, null=True)
    layout_type = models.IntegerField(blank=True, null=True)
    color_style = models.IntegerField(blank=True, null=True)
    position_infos = models.CharField(max_length=4096, blank=True, null=True)
    ratio_type = models.IntegerField(blank=True, null=True)
    cover_mode = models.IntegerField(blank=True, null=True)
    extra_placements = models.CharField(max_length=4096, blank=True, null=True)
    price_info = models.CharField(max_length=4096, blank=True, null=True)
    file_md5 = models.CharField(max_length=64, blank=True, null=True)
    deleted = models.IntegerField(blank=True, null=True)

    class Meta:
        managed = False
        db_table = 'material_img_data'
        app_label = 'AchieveHandler'